namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class ArchiveElementMap : ClassMap<ArchiveElementDataModel>
    {
        public ArchiveElementMap()
        {
            this.Table("ArchiveElement");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ArchiveElementID");
            this.Map(x => x.ArchivePageId).Column("ArchivePageID");
            this.Map(x => x.DataTypeId).Not.Nullable().Column("DataTypeID");
            this.Map(x => x.ElementValue).Column("ElementValue");
            this.Map(x => x.ElementFile).Column("ElementFile");
            this.Map(x => x.PartName).Column("PartName");
        }
    }
}